package com.project.mapper;

import com.project.bean.UserBean;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface IUserMapper {

    @Insert("insert Into t_userInfo(f_name,f_birthday,f_phone) " +
            "values(#{name},#{birthday},#{phone})")
    public void add(UserBean userBean);
    @Delete("delete from t_userInfo where pk_id=#{id}")
    public void del(Integer id);
    @Select("select * from t_userInfo")
    @ResultMap("userMap")
    public List<UserBean> findAll();
    @Update("update t_userInfo set f_phone=#{phone} where pk_id=#{id}")
    public void update(@Param("phone") String phone,@Param("id") Integer id);
}
